package register

import (
	logger "gitee.com/zaper/private-logger"
	"gitee.com/zaper/redis-service/model"
	"gitee.com/zaper/service-center-client/global_sign"
	"gitee.com/zaper/service-center-client/util"
)

func InitializePort() {
	go func() {
		port := util.GetListenPort()
		logger.Infof("redis listen port %s", port)
		model.RedisPortChan <- port
		global_sign.PortChan <- port
	}()
}
